package com.fancy.learncenter.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by shiweiwei on 2018/1/3.
 */

public class CartoonFinishWorkBean implements Parcelable{

//    private boolean addRadish;
    private String classId;
    private String headerImgurl;
    private String homeworkPackageId;
    private String lessonName;
    private double  radishCount;
    private String rightQuestionCount;
    private String studentName;
    private String totalQuestionCount;
    private String unitName;

    protected CartoonFinishWorkBean(Parcel in) {
//        addRadish = in.readByte() != 0;
        classId = in.readString();
        headerImgurl = in.readString();
        homeworkPackageId = in.readString();
        lessonName = in.readString();
        radishCount = in.readDouble();
        rightQuestionCount = in.readString();
        studentName = in.readString();
        totalQuestionCount = in.readString();
        unitName = in.readString();
    }

    public static final Creator<CartoonFinishWorkBean> CREATOR = new Creator<CartoonFinishWorkBean>() {
        @Override
        public CartoonFinishWorkBean createFromParcel(Parcel in) {
            return new CartoonFinishWorkBean(in);
        }

        @Override
        public CartoonFinishWorkBean[] newArray(int size) {
            return new CartoonFinishWorkBean[size];
        }
    };

//    public boolean isAddRadish() {
//        return addRadish;
//    }
//
//    public void setAddRadish(boolean addRadish) {
//        this.addRadish = addRadish;
//    }

    public String getClassId() {
        return classId;
    }

    public void setClassId(String classId) {
        this.classId = classId;
    }

    public String getHeaderImgurl() {
        return headerImgurl;
    }

    public void setHeaderImgurl(String headerImgurl) {
        this.headerImgurl = headerImgurl;
    }

    public String getHomeworkPackageId() {
        return homeworkPackageId;
    }

    public void setHomeworkPackageId(String homeworkPackageId) {
        this.homeworkPackageId = homeworkPackageId;
    }

    public String getLessonName() {
        return lessonName;
    }

    public void setLessonName(String lessonName) {
        this.lessonName = lessonName;
    }

    public double getRadishCount() {
        return radishCount;
    }

    public void setRadishCount(double radishCount) {
        this.radishCount = radishCount;
    }

    public String getRightQuestionCount() {
        return rightQuestionCount;
    }

    public void setRightQuestionCount(String rightQuestionCount) {
        this.rightQuestionCount = rightQuestionCount;
    }

    public String getStudentName() {
        return studentName;
    }

    public void setStudentName(String studentName) {
        this.studentName = studentName;
    }

    public String getTotalQuestionCount() {
        return totalQuestionCount;
    }

    public void setTotalQuestionCount(String totalQuestionCount) {
        this.totalQuestionCount = totalQuestionCount;
    }

    public String getUnitName() {
        return unitName;
    }

    public void setUnitName(String unitName) {
        this.unitName = unitName;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
//        dest.writeByte((byte) (addRadish ? 1 : 0));
        dest.writeString(classId);
        dest.writeString(headerImgurl);
        dest.writeString(homeworkPackageId);
        dest.writeString(lessonName);
        dest.writeDouble(radishCount);
        dest.writeString(rightQuestionCount);
        dest.writeString(studentName);
        dest.writeString(totalQuestionCount);
        dest.writeString(unitName);
    }
}
